package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGroupInvite extends Object implements IMessageBase
    {
        public var player:SPublicMiniPlayer;
        public var certId:String;
        public const _type:int = 20401;
        public static var _regist:SGroupInvite = new SGroupInvite(true);

        public function SGroupInvite(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SGroupInvite();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.player.__write(param1);
            param1.writeString(this.certId);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.player = new SPublicMiniPlayer();
            this.player.__read(param1);
            this.certId = param1.readString();
            
        }

    }
}
